﻿using RBAC.MaHaiBo.Entity;
namespace RBAC.MaHaiBo.Service
{
    public interface IUserRoleService
    {
        /// <summary>
        /// 批量添加
        /// </summary>
        /// <param name="Ids">数据编号集合</param>
        /// <returns>返回受影响行数</returns>
        Task<int> ByAddUserRole(List<int> Ids, int Rid);
        /// <summary>
        /// 显示员工
        /// </summary>
        /// <param name="Ids">部门编号集合</param>
        /// <returns></returns>
        Task<List<Tmeen>> GetUserinfo(string Ids);
        /// <summary>
        /// 根据角色显示员工
        /// </summary>
        /// <param name="Rid">角色编号</param>
        /// <returns></returns>
        Task<List<UserInfo>> GetRoleUserinfo(int Rid);
        /// <summary>
        /// 删除用户与角色表的关联
        /// </summary>
        /// <param name="Uid">用户编号</param>
        /// <param name="Rid">角色编号</param>
        /// <returns></returns>
        Task<int> DelUserRole(int Uid, int Rid);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="Rid">角色</param>
        /// <returns></returns>
        Task<List<int>> Backfillde(int Rid);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="Rid">角色</param>
        /// <returns></returns>
        Task<List<int>> Backfilluid(int Rid);


    }
}
